package com.cn.pack.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @RequestMapping(path = "/hello/say/{id}")
    public String say(@PathVariable("id") Integer id) {
        System.out.println("/hello/say/" + id);
        return "/hello/say/" + id;
    }
}
